package com.gusti.turnos.response;

/**
 * 
 * @author gusti
 *
 */
public abstract class AbstractResponse {

	private boolean success = false;
	String errorMessage = null;

	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	//OTHERS
	public boolean hasError() {
		return this.errorMessage != null;
	}
}
